<template>
  <el-table-column :="attrs">

    <template #default="{ row }">
      <ElButton link type="primary" @click="showList(row)">{{ row.shopName }}</ElButton>
    </template>
  </el-table-column>
</template>

<script setup lang="ts">
import { useAttrs } from 'vue'
import { dialog } from '@/utils/dialog'
import ShopDetail from './ShopDetail.vue'
const attrs = useAttrs()

const showList = (value) => {
  dialog(ShopDetail, { title: value.shopName,  modalClass: 'custom-dialog' }, { data: value })
}
</script>
